package com.jhgsys.internal.accident.service;

import com.jhgsys.internal.accident.entity.AccidentReportFile;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 事故相关附件 Service接口
 *
 * @author admin
 * @date 2024-08-07 16:27:37
 */
public interface IAccidentReportFileService extends IService<AccidentReportFile> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-08-07 16:27:37
     * @param request QueryRequest
     * @param accidentReportFile accidentReportFile
     * @return IPage<AccidentReportFile>
     */
    IPage<AccidentReportFile> findAccidentReportFiles(QueryRequest request, AccidentReportFile accidentReportFile);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-08-07 16:27:37
     * @param accidentReportFile accidentReportFile
     * @return List<AccidentReportFile>
     */
    List<AccidentReportFile> findAccidentReportFiles(AccidentReportFile accidentReportFile);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-08-07 16:27:37
    * @param id
    * @return AccidentReportFile
    */
    AccidentReportFile findAccidentReportFileById(Integer id);

    /**
     * 新增
     * @author admin
     * @date 2024-08-07 16:27:37
     * @param accidentReportFile accidentReportFile
     */
    void createAccidentReportFile(AccidentReportFile accidentReportFile);

    /**
     * 修改
     * @author admin
     * @date 2024-08-07 16:27:37
     * @param accidentReportFile accidentReportFile
     */
    void updateAccidentReportFile(AccidentReportFile accidentReportFile);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-08-07 16:27:37
     * @param accidentReportFile accidentReportFile
     * @param accidentReportFileIds accidentReportFileIds
     */
    void deleteAccidentReportFile(AccidentReportFile accidentReportFile,String accidentReportFileIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-08-07 16:27:37
    * @param accidentReportFileIds accidentReportFileIds
    */
    void physicallyDeleteAccidentReportFile(String accidentReportFileIds);

    /**
     * 根据事故报告id删除
     * @author admin
     * @date 2024-08-14 09:56:15
     * @param reportIds
     * @param fileType 文件类型;1：事故上报文件 2：事故调查文件 3：事故整改文件
     */
    void deleteByReportIds(String reportIds,String fileType);
}
